package com.znjc.device.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.znjc.common.annotation.Excel;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 【请填写功能名称】对象 device_type_serial_ref
 *
 * @author zengpc
 * @date 2023-12-04
 */
@Data
public class DeviceTypeSerialRef {
    private static final long serialVersionUID = 1L;

    /**
     * 数据标识
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 设备类别id
     */
    @Excel(name = "设备类别id")
    private Long typeId;

    /**
     * 串口id
     */
    @Excel(name = "串口id")
    private Long serialId;


    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("typeId", getTypeId())
                .append("serialId", getSerialId())
                .toString();
    }
}
